//
//  HYSalonTableHeaderView.m
//  KaiJing
//
//  Created by lanou on 16/1/15.
//  Copyright © 2016年 HuangZuCui. All rights reserved.
//

#import "HYSalonTableHeaderView.h"
#import "UIView+WLFrame.h"
@implementation HYSalonTableHeaderView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _headerImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight / 4)];
        _headerImageView.backgroundColor = kRandomClolor;
        [self addSubview:_headerImageView];
        
        _name = [[UILabel alloc] initWithFrame:CGRectMake(30, 50, kScreenWidth - 60, 60)];
        _name.numberOfLines = 2;
        _name.backgroundColor = kRandomClolor;
        [_headerImageView addSubview:_name];
        
        _threadnum = [[UILabel alloc] initWithFrame:CGRectMake((kScreenWidth - 100)/2, _name.bottom + 10, 100, 30)];
        _threadnum.backgroundColor = kRandomClolor;
        [_headerImageView addSubview:_threadnum];
        
        
        _founderusername = [[UILabel alloc] initWithFrame:CGRectMake(20, _headerImageView.bottom + 10, 80, 30)];
        _founderusername.backgroundColor = kRandomClolor;
        [self addSubview:_founderusername];
        
        _timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(_founderusername.right + 20, _headerImageView.bottom + 10, 120, 30)];
        _timeLabel.backgroundColor = kRandomClolor;
        [self addSubview:_timeLabel];
        
        
        _desc = [[UILabel alloc] initWithFrame:CGRectMake(20, _founderusername.bottom + 10, kScreenWidth - 40, 55)];
        _desc.font = [UIFont systemFontOfSize:12];
        _desc.numberOfLines = 3;
        _desc.backgroundColor = kRandomClolor;
        [self addSubview:_desc];

        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
